package com.wondertek.service.service.sys;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wondertek.service.dto.sys.req.AppVersionAddReq;
import com.wondertek.service.dto.sys.req.AppVersionQueryReq;
import com.wondertek.service.dto.sys.req.AppVersionUpdateReq;
import com.wondertek.service.entity.sys.AppVersionPo;

/**
 * @author wangyu
 */
public interface IAppVersionService extends IService<AppVersionPo> {

    /**
     * app版本分页查询
     *
     * @param appVersionQueryReq
     * @return
     */
    Page<AppVersionPo>  page(AppVersionQueryReq appVersionQueryReq);

    /**
     * app版本新增
     *
     * @param appVersionAddReq
     */
    void add(AppVersionAddReq appVersionAddReq);

    /**
     * app版本修改
     *
     * @param appVersionUpdateReq
     */
    void update(AppVersionUpdateReq appVersionUpdateReq);

    /**
     * 获取版本更新信息
     *
     * @param version
     * @param type
     * @return
     */
    AppVersionPo getAppVersion(String version, Integer type);
}
